package com.nail.common;


public class Constant {

    //redis key 前缀
    public static final String REDIS_USER_KEY = "redis_user_key_";  //存入缓存用户前缀
    public static final String CHANGE_USER_KEY = "change_user_key_";//修改用户缓存前缀
    

    /**
     * REST API CODE定义
     * 200 = 成功
     * 500 = 异常
     * 501 = 缺少参数
     * 502 = 参数类型不正确
     * 1001 = 用户未登录
     */
    public static final Integer API_CODE_SUCCESS = 200;
    public static final Integer API_CODE_ERROR = 500;
    public static final Integer API_CODE_501 = 501;
    public static final Integer API_CODE_502 = 502;
    public static final Integer API_CODE_503 = 503;
    public static final Integer API_CODE_504 = 504;
    
    //用户相关
    public static final Integer API_CODE_1001 = 1001;
    public static final Integer API_CODE_1002 = 1002;
    public static final Integer API_CODE_1003 = 1003;
    public static final Integer API_CODE_1004 = 1004;
    public static final Integer API_CODE_1005 = 1005;
    public static final Integer API_CODE_1006 = 1006;


    public static final String API_MSG_SUCCESS = "success！";
    public static final String API_MSG_ERROR = "error！";
    public static final String API_MSG_501 = "Lack of parameter";
    public static final String API_MSG_502 = "Incorrect parameter type";
    public static final String API_MSG_503 = "Parameter error";
    public static final String API_MSG_504 = "User name or passwords are wrong";
    
    //用户相关
    public static final String API_MSG_1001 = "Not logged in or logged in timeout";
    public static final String API_MSG_1002 = "The user is prohibited, please contact the administrator ！";
    public static final String API_MSG_1003 = "you don't have the access！";
    public static final String API_MSG_1004 = "Type already exists！";
    public static final String API_MSG_1005 = "Relevant information is not available";
    public static final String API_MSG_1006 = "User doesn't exist";

    //支付相关
    public static final Integer API_CODE_2001 = 2001;
    public static final Integer API_CODE_2002 = 2002;

    public static final String API_MSG_2001 = "Payment failed！";
    public static final String API_MSG_2002 = "Incorrect payment number！";


    //邮件标题
    public static final String MAIL_TITLE = "For reset passwords, please don't reply it, available within 10 minutes.";
    

}
